# shellcheck shell=sh
# shellcheck disable=SC2034

# ferreus_orbit Plugins for HPE "DL365 Gen11"

fo_get_sorted_name(){
  id=$(fo_get_id)
  if [ "$USE_FO_NAME" -lt 1 ]; then
    echo "sd$(fo_get_dev_letter "${id}")"
    exit 0
  else
    echo "Disk${id}"
    exit 0
  fi
}

fo_get_did(){
  fo_get_id "$1"
}

fo_get_id(){
  ata=$(echo "$DEVPATH" | cut -d/ -f8| cut -d: -f3)
  [ "$ata" -eq "111" ] && ata=1
  id=$((ata - 2))
  echo "$id"
}

fo_build_dispo(){
  return 0
}

FO_DISPOSITION="Disposition unavailable"
